package com.visionet.order.controller;

import com.visionet.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: pengjx
 * @Date: 2019-01-22 14:31
 */
@RestController("/order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping(value = "/saveOrder/{id}")
    public String saveOrder(@RequestParam String id) {
        return orderService.saveOrder(id);
    }
}
